import request from '@/utils/request'

/**
 * 获取首页数据
 *
*/
export function getHomeData () {
  return request({
    url: '/home/data'
  })
}
/**
 * 消息头条
 */
export function getMessageList () {
  return request({
    url: '/home/notice'
  })
}

/**
 * 发布
 * 
 */
export function publishNotice (data) {
  return request({
    url: '/home/publish',
    method: 'post',
    data: { notice: data }
  })
}
